<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>神华仓库管理系统</title>
		<!-- jQuery 主文件 -->
		<script type="text/javascript" src="js/jquery.min.js" ></script>
		<!-- easyui 主文件 -->
		<script type="text/javascript" src="js/jquery.easyui.min.js" ></script>
		<!-- 国际化文件 -->
		<script type="text/javascript" src="js/locale/easyui-lang-zh_CN.js" ></script>
		<!-- easyui 主样式文件 -->
		<link rel="stylesheet" href="js/themes/black/easyui.css" />
		<link rel="stylesheet" href="js/themes/icon.css" />
		<link rel="shortcut icon" href="js/themes/icons/dada.ico" type="image/x-icon" />
		<title></title>
		<script type="text/javascript">
			
			$(function(){
				tree1.pageUI.init();
				$.messager.show({
					title:'你有新的消息',
					msg:'欢迎使用神华ERP仓库管理系统',
					timeout:2000,
					showType:'slide'
				});
		 
			})
			
			var tree1={
					pageUI:{
						init:function(){
							//后台传过来的json
							$.getScript("href/trees.js")
						}
					}
				}
			
			
			
		</script>
	</head>
<body class="easyui-layout">   
    <div data-options="region:'north',split:true" 
    style="height:70px;background-color:black;background:url(css/banner.jpg) no-repeat top center">
   		<div id="sysbox" style="float:right">
    		<span style="color:yellow;font-size:20px;margin-right:50px;margin-top:580px">Welcome:<shiro:principal></shiro:principal>&nbsp;&nbsp;&nbsp;<a href="logout">Logout</a></span> 
   		</div>
    </div>   
    <div data-options="region:'south',title:'copyrghit-610125',split:true" style="height:30px;"></div>   
    <div data-options="region:'east',iconCls:'备注',title:'East',split:true" style="width:200px;"></div>   
    <div data-options="region:'west',title:'功能菜单',split:true,border:false" style="width:200px;">
	    	<div id="lest-accodion" class="easyui-accordion" data-options="fit:true" style="width:300px;height:200px;">   
					
				<shiro:hasAnyRoles name="boss,pur,purmaster">
			    <div title="采购入库管理" data-options="iconCls:'icon-menu'" style="padding:10px;">   
			        <ul id="tt2"></ul>     
			    </div> 
			    </shiro:hasAnyRoles>
			    
			    <shiro:hasAnyRoles name="boss,fina,finamaster">   
			    <div title="查询及生成报表系统" data-options="iconCls:'icon-menu'">   
			        <ul id="tt4"></ul>     
			    </div>  
			    
			    <div title="盘点管理" data-options="iconCls:'icon-menu'">   
			        content4    
			    </div>
			    </shiro:hasAnyRoles>
			    
			    <shiro:hasAnyRoles name="boss,store,storemaster">      
			    <div title="库存管理" data-options="iconCls:'icon-menu'" style="padding:10px;">   
			       <ul id="tt3"></ul> 
			    </div>   
			    <div title="智能库存分析及警报管理" data-options="iconCls:'icon-menu'">   
			        content6    
			    </div>
			     </shiro:hasAnyRoles>
			      
			    <shiro:hasAnyRoles name="boss,sale,salemaster">   
			    <div title="销售出库管理" data-options="iconCls:'icon-menu'">
			    </div>
			    </shiro:hasAnyRoles>  
			      
			    <shiro:hasAnyRoles name="boss,tech,techmaster">
			    <div title="BOM管理" data-options="iconCls:'icon-menu'">
			    	  <ul id="tt5"></ul>  
			    </div> 
			    </shiro:hasAnyRoles>
			       
			   <shiro:hasAnyRoles name="boss,admin">
					 <div title="登录管理" data-options="iconCls:'icon-save',selected:true" style="overflow:auto;padding:10px;">   
				        <ul id="tt1"></ul>  
				    </div>
				</shiro:hasAnyRoles>  
			</div>  
    </div>   
    <div data-options="region:'center',border:false" background:#eee;">
    	<div id="center-tabs" class="easyui-tabs" data-options="fit:true" style="width:500px;height:250px;">   
		    <div title="Tab1" style="padding:20px;">   
		        tab1    
		    </div>     
		</div>  
    </div>   
</body>  
</html>
